package ink.feny.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页
 * @author Feny
 * @date Created in 2021/4/26
 */
@Api(tags = "首页API")
@RestController
public class IndexController {
    @ApiOperation("首页入口")
    @GetMapping("/")
    public String index() {
        return "Hello World!";
    }

    @ApiOperation("test")
    @GetMapping("/test")
    public String test() {
        return "test";
    }
}
